//
//  HYImagePicker.h
//  TestDemo
//
//  Created by xuk on 16/2/22.
//  Copyright © 2016年 Macmini2015. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIImagePickerController.h>

typedef NS_ENUM(NSInteger , MediaType)
{
    MediaTypeImage = 0 ,
    MediaTypeMovie = 1 ,
};

@class HYImagePicker;
@protocol HYImagePickerDelegate <NSObject>
//返回多媒体数据
- (void)imagePicker:(HYImagePicker *)imagePicker type:(MediaType)type and:(NSString *)path;

@end

@interface HYImagePicker : NSObject

//使用方法 1 显示actiosheet选择类型
//例如：不设置任何属性
//[[HYImagePicker new] showWith:self];
- (void)showWith:(id)delegate;

//使用方法 2 立即跳转
//例如：直接跳转相册
//HYImagePicker *imagePicker = [HYImagePicker new];
//imagePicker.delegate = self;
//[imagePicker showImmediatelyWith:UIImagePickerControllerSourceTypePhotoLibrary];
@property (nonatomic, assign)  id<HYImagePickerDelegate>delegate ; //代理
- (void)showImmediatelyWith:(UIImagePickerControllerSourceType)type;


//自定义修改内容 可以不赋值
@property (nonatomic, weak) UIViewController *controller;//所在controller
@property (nonatomic, assign) UIImagePickerControllerSourceType type;//打开所在文件夹
@property (nonatomic, assign) BOOL allowsEditing;//编辑
@property (nonatomic, assign) MediaType mediaType;//媒体类型
@property (nonatomic, assign) NSInteger tag;//标签 用于图片命名
@property (nonatomic, assign) BOOL isNeedScale;//是否需要压缩

@end
